package com.woniuxy.carlife.feign.controller;

import com.woniuxy.carlife.carlifecommonsweb.responsetemplate.Result;
import com.woniuxy.carlife.carlifecommonsweb.responsetemplate.StatusCode;
import com.woniuxy.carlife.dto.ServiceInfoDto;
import com.woniuxy.carlife.service.ServiceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author fx
 * @ClassName:UserController
 * @Description:
 * @date 2021/4/16 15:17
 **/
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private ServiceInfoService service;

    /**
     * 功能描述〈用户模块获取服务详情〉
     * @author:fx
     * @param: @param null:
     * @return:
     * @Date 2021/4/16 15:19
     * @throws
     */
    @GetMapping("serviceid")
    public ServiceInfoDto findServcieInfoByServiceInfoId(Integer infoId) {
        log.info("findServcieInfoByServiceInfoId开始:参数：{}", infoId);
        ServiceInfoDto servcieInfoByServiceInfoId =
                service.findServcieInfoByServiceInfoId(infoId);
        return servcieInfoByServiceInfoId;
    }
}
